window.onload=function(){
const baseUrl = 'http://47.104.27.232:3000/gateway';
const code = "http://47.104.27.232:3000/verification";//验证码接口
// var md5 = require('js-md5');
const md5Key = "5d315780c23a5a13ad195ea1344ec387";
const imgPath = "http://47.104.27.232"
var getData = {
    code: code,
    baseUrl: baseUrl,
    imgPath: imgPath,
    headers: (serverUrl, token, type) => {
        const date = Date.parse(new Date()) / 1000;
        return {
            'service_name': "business-server",
            'service_url': "/business" + serverUrl,
            'timestamp': date,//时间戳
            // 'hmac': md5(date + md5Key),//md5
            'loginTokenKey': 'business:token:' + token,
            'authorization': token,
            // 'Content-Type': type

        }

    }
};
return getData
console.log(getData.baseUrl)
}